<%--
  Created by IntelliJ IDEA.
  User: z'y'l
  Date: 2021/6/30
  Time: 14:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" language="java" import="java.sql.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<base href="<%=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/" %>">
<link href="bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" src="bootstrap-3.3.7-dist/jquery-3.2.1.min.js" ></script>
<script type="text/javascript" src="bootstrap-3.3.7-dist/js/bootstrap.js"></script>
<script type="text/javascript" src="bootstrap-3.3.7-dist/js/npm.js"></script>
<style>
    .container {
        height: 100%;
        width: 100%;
        position: relative;
        background: url("img/cong.jpg") no-repeat;
    }

    .login {
        width: 500px;
        height: auto;
        background-color: white;
        position: absolute;
        left: 450px;
        border-radius: 8px;
    }

    label {
        float: left;
        width: 100px;
        margin-top: 7px;
        margin-right: 5px;
    }

    .form-control {
        width: 60%;
    }

    .logtip {
        padding-top: 20px;
        padding-bottom: 20px;
        border-bottom: 2px solid red;
        text-align: center;
    }

    .form-group {
        margin-left: 40px;
        margin-top: 20px;
    }

    .btn {
        height: 50px;
        width: 100px;
        float: left;
        border-radius: 10px;
    }

    .logbtn {
        margin-right: 20px;
    }

    .btnbag {
        margin-left: 140px;
        margin-right: 140px;
        height: 50px;
        overflow: hidden;
        margin-top: 30px;
        margin-bottom: 40px;
    }

</style>

<body>
<div class="container" align="center">
    <div class="login">
        <h2 class="logtip">班级信息</h2>
        <form action="/user/upclas" method="post" onsubmit="return check()">
            <div class="form-group">
                <label for="clasno">班级学生ID</label>
                <input type="text" class="form-control" id="clasno" name="clason" value="${uclass.classid}">
            </div>

            <div class="form-group">
                <label for="sgrade">班级名</label>
                <select name="sgrade" id="sgrade" class="form-control">
                    <option value="">--请选择--</option>
                    <c:forEach items="${clas}" var="cs">
                        <option value="${cs.cname}">${cs.cname}</option>
                    </c:forEach>
                </select>
            </div>

            <!--<div class="form-group">
                <label for="userid">用户ID</label>
                <input type="text" class="form-control" id="userid" name="userid" value="">
            </div>-->

            <div class="btnbag">
                <input type="submit" class="btn btn-primary logbtn" value="确定">
                <input type="reset" class="btn btn-primary mangbtn" value="重置">
            </div>
        </form>
    </div>
</div>
</body>
</html>
